import request from '@/utils/request'

export function getRoomList(data) {
  return request({
    url: '/admin.php?s=Admin.Room.RoomList',
    method: 'post',
    data,
  })
}

export function getBuildList(data) {
  return request({
    url: '/admin.php?s=Admin.Building.BuildingQuery',
    method: 'post',
    data,
  })
}

export function addBuild(data) {
  return request({
    url: '/admin.php?s=Admin.Building.AddBuilding',
    method: 'post',
    data,
  })
}

export function editBuild(data) {
  return request({
    url: '/admin.php?s=Admin.Building.UpdateBuilding',
    method: 'post',
    data,
  })
}

export function deleteBuild(data) {
  return request({
    url: '/admin.php?s=Admin.Building.DeleteBuilding',
    method: 'post',
    data,
  })
}

export function addRoom(data) {
  return request({
    url: '/admin.php?s=Admin.Home.AddHome',
    method: 'post',
    data,
  })
}

export function editRoom(data) {
  return request({
    url: '/admin.php?s=Admin.Home.UpdateHome',
    method: 'post',
    data,
  })
}

export function deleteRoom(data) {
  return request({
    url: '/admin.php?s=Admin.Home.DeleteHome',
    method: 'post',
    data,
  })
}

export function addFloor(data) {
  return request({
    url: '/admin.php?s=Admin.Building.AddFloor',
    method: 'post',
    data,
  })
}

export function deleteFloor(data) {
  return request({
    url: '/admin.php?s=Admin.Building.DeleteFloor',
    method: 'post',
    data,
  })
}

export function getHouse(data) {
  return request({
    url: '/admin.php?s=Admin.Room.RoomDetail',
    method: 'post',
    data,
  })
}

export function addHouse(data) {
  return request({
    url: '/admin.php?s=Admin.Room.AddRoom',
    method: 'post',
    data,
  })
}

export function editHouse(data) {
  return request({
    url: '/admin.php?s=Admin.Room.UpdateRoom',
    method: 'post',
    data,
  })
}

export function editOneHouse(data) {
  return request({
    url: '/admin.php?s=Admin.Room.ModifyRoomInfo',
    method: 'post',
    data,
  })
}

export function deleteHouse(data) {
  return request({
    url: '/admin.php?s=Admin.Room.DeleteRoom',
    method: 'post',
    data,
  })
}

export function setDirty(data) {
  return request({
    url: '/admin.php?s=Admin.Room.SetRoomToDirty',
    method: 'post',
    data,
  })
}

export function setClean(data) {
  return request({
    url: '/admin.php?s=Admin.Room.SetRoomToNeat',
    method: 'post',
    data,
  })
}
